<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>ShipCAD: ShipCADlib/filebuffer.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ShipCAD
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_f0b6ef187c5b1483641b038f81654ac4.html">ShipCADlib</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">filebuffer.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="filebuffer_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*##############################################################################################</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> *    ShipCAD                                                                                  *</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *    Copyright 2015, by Greg Green &lt;ggreen@bit-builder.com&gt;                                   *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *    Original Copyright header below                                                          *</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *                                                                                             *</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> *    This code is distributed as part of the FREE!ship project. FREE!ship is an               *</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *    open source surface-modelling program based on subdivision surfaces and intended for     *</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *    designing ships.                                                                         *</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *                                                                                             *</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *    Copyright © 2005, by Martijn van Engeland                                                *</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> *    e-mail                  : Info@FREEship.org                                              *</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *    FREE!ship project page  : https://sourceforge.net/projects/freeship                      *</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *    FREE!ship homepage      : www.FREEship.org                                               *</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *                                                                                             *</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> *    This program is free software; you can redistribute it and/or modify it under            *</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *    the terms of the GNU General Public License as published by the                          *</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *    Free Software Foundation; either version 2 of the License, or (at your option)           *</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> *    any later version.                                                                       *</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> *                                                                                             *</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> *    This program is distributed in the hope that it will be useful, but WITHOUT ANY          *</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> *    WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A          *</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> *    PARTICULAR PURPOSE. See the GNU General Public License for more details.                 *</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> *                                                                                             *</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> *    You should have received a copy of the GNU General Public License along with             *</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> *    this program; if not, write to the Free Software Foundation, Inc.,                       *</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> *    59 Temple Place, Suite 330, Boston, MA 02111-1307 USA                                    *</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> *                                                                                             *</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment"> *#############################################################################################*/</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#ifndef FILEBUFFER_H_</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#define FILEBUFFER_H_</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &lt;QFile&gt;</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &lt;QObject&gt;</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#include &lt;QVector3D&gt;</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#include &lt;QColor&gt;</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#include &lt;QString&gt;</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="version_8h.html">version.h</a>&quot;</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="plane_8h.html">plane.h</a>&quot;</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="resistance_8h.html">resistance.h</a>&quot;</span></div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceShipCAD.html">ShipCAD</a> {</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="keyword">struct </span>JPEGImage;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="classShipCAD_1_1FileBuffer.html">   52</a></span>&#160;<span class="keyword">class </span><a class="code" href="classShipCAD_1_1FileBuffer.html">FileBuffer</a> : <span class="keyword">public</span> QObject</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;{</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    Q_OBJECT</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <span class="keyword">explicit</span> <a class="code" href="classShipCAD_1_1FileBuffer.html#ab243cfcb8a68ce791103594e974ee9ba">FileBuffer</a>();</div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="classShipCAD_1_1FileBuffer.html#a397c9a755598f9939eb30460b605d44c">   58</a></span>&#160;    <a class="code" href="classShipCAD_1_1FileBuffer.html#a397c9a755598f9939eb30460b605d44c">~FileBuffer</a>() {}</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="classShipCAD_1_1FileBuffer.html#a51dc1007457d999ce374afd6a6ae29f8">   60</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="classShipCAD_1_1FileBuffer.html#a51dc1007457d999ce374afd6a6ae29f8">size</a>() {<span class="keywordflow">return</span> _data.size();}</div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="classShipCAD_1_1FileBuffer.html#a7feeac3f68df96065a3238cbca9a5151">   61</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="classShipCAD_1_1FileBuffer.html#a7feeac3f68df96065a3238cbca9a5151">pos</a>() {<span class="keywordflow">return</span> _pos;}</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    </div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    <span class="comment">// version</span></div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="classShipCAD_1_1FileBuffer.html#a06f87b30f5fd091cc5c270964ea16770">   64</a></span>&#160;    <a class="code" href="namespaceShipCAD.html#af3a6fa23a7318acbda7b0066b53d694f">version_t</a> <a class="code" href="classShipCAD_1_1FileBuffer.html#a06f87b30f5fd091cc5c270964ea16770">getVersion</a>() {<span class="keywordflow">return</span> _file_version;}</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1FileBuffer.html#a66c14f8f21b9f77febd154aee9565f0b">setVersion</a>(<a class="code" href="namespaceShipCAD.html#af3a6fa23a7318acbda7b0066b53d694f">version_t</a> v);</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    </div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    <span class="comment">// save/restore/reset</span></div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1FileBuffer.html#afe2a6e56770eed6bf9df894baa28c9fe">loadFromFile</a>(QFile&amp; file);</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1FileBuffer.html#adcc7e54a07f39ad930df82da9c3c70fd">saveToFile</a>(QFile&amp; file);</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1FileBuffer.html#af59c26297994b38aabc4bc678d04c246">reset</a>();</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="comment">// load/add</span></div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(<a class="code" href="structShipCAD_1_1JPEGImage.html">JPEGImage</a>&amp; img);</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(<span class="keyword">const</span> <a class="code" href="structShipCAD_1_1JPEGImage.html">JPEGImage</a>&amp; img);</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    </div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(quint8&amp; val);</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(quint8 val);</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    </div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(<span class="keywordtype">bool</span>&amp; val);</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(<span class="keywordtype">bool</span> val);</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(<span class="keywordtype">float</span>&amp; val);</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(<span class="keywordtype">float</span> val);</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(qint32&amp; val);</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(qint32 val);</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(quint32&amp; val);</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(quint32 val);</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="preprocessor">#if defined(_WIN32) &amp;&amp; !defined(_WIN64)</span></div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    <span class="comment">// don&#39;t define a size_t add, taken care of by quint32 add</span></div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(<span class="keywordtype">size_t</span> val);</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(QVector3D&amp; val);</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(<span class="keyword">const</span> QVector3D&amp; val);</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(QColor&amp; val);</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(<span class="keyword">const</span> QColor&amp; val);</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(QString&amp; val);</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(<span class="keyword">const</span> QString&amp; val);</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* str);</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(<a class="code" href="classShipCAD_1_1Plane.html">Plane</a>&amp; val);</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(<span class="keyword">const</span> <a class="code" href="classShipCAD_1_1Plane.html">Plane</a>&amp; val);</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(<a class="code" href="structShipCAD_1_1DelftSeriesResistance.html">DelftSeriesResistance</a>* buf);</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(<span class="keyword">const</span> <a class="code" href="structShipCAD_1_1DelftSeriesResistance.html">DelftSeriesResistance</a>* buf);</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">load</a>(<a class="code" href="structShipCAD_1_1KAPERResistance.html">KAPERResistance</a>* buf);</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">add</a>(<span class="keyword">const</span> <a class="code" href="structShipCAD_1_1KAPERResistance.html">KAPERResistance</a>* buf);</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    <span class="keywordtype">size_t</span> _pos;           <span class="comment">// current position in the data vector</span></div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    <a class="code" href="namespaceShipCAD.html#af3a6fa23a7318acbda7b0066b53d694f">version_t</a> _file_version;</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    std::vector&lt;quint8&gt; _data;   <span class="comment">// the data</span></div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;};</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;};              <span class="comment">/* end namespace */</span></div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;</div><div class="ttc" id="classShipCAD_1_1FileBuffer_html_af59c26297994b38aabc4bc678d04c246"><div class="ttname"><a href="classShipCAD_1_1FileBuffer.html#af59c26297994b38aabc4bc678d04c246">ShipCAD::FileBuffer::reset</a></div><div class="ttdeci">void reset()</div><div class="ttdef"><b>Definition:</b> <a href="filebuffer_8cpp_source.html#l00058">filebuffer.cpp:58</a></div></div>
<div class="ttc" id="classShipCAD_1_1FileBuffer_html_afe2a6e56770eed6bf9df894baa28c9fe"><div class="ttname"><a href="classShipCAD_1_1FileBuffer.html#afe2a6e56770eed6bf9df894baa28c9fe">ShipCAD::FileBuffer::loadFromFile</a></div><div class="ttdeci">void loadFromFile(QFile &amp;file)</div><div class="ttdef"><b>Definition:</b> <a href="filebuffer_8cpp_source.html#l00068">filebuffer.cpp:68</a></div></div>
<div class="ttc" id="resistance_8h_html"><div class="ttname"><a href="resistance_8h.html">resistance.h</a></div></div>
<div class="ttc" id="classShipCAD_1_1FileBuffer_html_a9a5d46b2c6d568ee2cdef110d4773e73"><div class="ttname"><a href="classShipCAD_1_1FileBuffer.html#a9a5d46b2c6d568ee2cdef110d4773e73">ShipCAD::FileBuffer::add</a></div><div class="ttdeci">void add(const JPEGImage &amp;img)</div><div class="ttdef"><b>Definition:</b> <a href="filebuffer_8cpp_source.html#l00108">filebuffer.cpp:108</a></div></div>
<div class="ttc" id="plane_8h_html"><div class="ttname"><a href="plane_8h.html">plane.h</a></div></div>
<div class="ttc" id="structShipCAD_1_1JPEGImage_html"><div class="ttname"><a href="structShipCAD_1_1JPEGImage.html">ShipCAD::JPEGImage</a></div><div class="ttdoc">jpeg image as stored in Free!Ship binary file </div><div class="ttdef"><b>Definition:</b> <a href="shipcadlib_8h_source.html#l00212">shipcadlib.h:212</a></div></div>
<div class="ttc" id="structShipCAD_1_1DelftSeriesResistance_html"><div class="ttname"><a href="structShipCAD_1_1DelftSeriesResistance.html">ShipCAD::DelftSeriesResistance</a></div><div class="ttdef"><b>Definition:</b> <a href="resistance_8h_source.html#l00038">resistance.h:38</a></div></div>
<div class="ttc" id="classShipCAD_1_1FileBuffer_html_a86223c54bcf111ef205c9d651e0b9a66"><div class="ttname"><a href="classShipCAD_1_1FileBuffer.html#a86223c54bcf111ef205c9d651e0b9a66">ShipCAD::FileBuffer::load</a></div><div class="ttdeci">void load(JPEGImage &amp;img)</div><div class="ttdef"><b>Definition:</b> <a href="filebuffer_8cpp_source.html#l00096">filebuffer.cpp:96</a></div></div>
<div class="ttc" id="classShipCAD_1_1FileBuffer_html_a7feeac3f68df96065a3238cbca9a5151"><div class="ttname"><a href="classShipCAD_1_1FileBuffer.html#a7feeac3f68df96065a3238cbca9a5151">ShipCAD::FileBuffer::pos</a></div><div class="ttdeci">size_t pos()</div><div class="ttdef"><b>Definition:</b> <a href="filebuffer_8h_source.html#l00061">filebuffer.h:61</a></div></div>
<div class="ttc" id="classShipCAD_1_1FileBuffer_html"><div class="ttname"><a href="classShipCAD_1_1FileBuffer.html">ShipCAD::FileBuffer</a></div><div class="ttdoc">in-memory buffer for a binary file (FREE!Ship format) </div><div class="ttdef"><b>Definition:</b> <a href="filebuffer_8h_source.html#l00052">filebuffer.h:52</a></div></div>
<div class="ttc" id="classShipCAD_1_1FileBuffer_html_a06f87b30f5fd091cc5c270964ea16770"><div class="ttname"><a href="classShipCAD_1_1FileBuffer.html#a06f87b30f5fd091cc5c270964ea16770">ShipCAD::FileBuffer::getVersion</a></div><div class="ttdeci">version_t getVersion()</div><div class="ttdef"><b>Definition:</b> <a href="filebuffer_8h_source.html#l00064">filebuffer.h:64</a></div></div>
<div class="ttc" id="version_8h_html"><div class="ttname"><a href="version_8h.html">version.h</a></div></div>
<div class="ttc" id="namespaceShipCAD_html_af3a6fa23a7318acbda7b0066b53d694f"><div class="ttname"><a href="namespaceShipCAD.html#af3a6fa23a7318acbda7b0066b53d694f">ShipCAD::version_t</a></div><div class="ttdeci">version_t</div><div class="ttdef"><b>Definition:</b> <a href="version_8h_source.html#l00039">version.h:39</a></div></div>
<div class="ttc" id="classShipCAD_1_1FileBuffer_html_a66c14f8f21b9f77febd154aee9565f0b"><div class="ttname"><a href="classShipCAD_1_1FileBuffer.html#a66c14f8f21b9f77febd154aee9565f0b">ShipCAD::FileBuffer::setVersion</a></div><div class="ttdeci">void setVersion(version_t v)</div><div class="ttdef"><b>Definition:</b> <a href="filebuffer_8cpp_source.html#l00063">filebuffer.cpp:63</a></div></div>
<div class="ttc" id="classShipCAD_1_1FileBuffer_html_ab243cfcb8a68ce791103594e974ee9ba"><div class="ttname"><a href="classShipCAD_1_1FileBuffer.html#ab243cfcb8a68ce791103594e974ee9ba">ShipCAD::FileBuffer::FileBuffer</a></div><div class="ttdeci">FileBuffer()</div><div class="ttdef"><b>Definition:</b> <a href="filebuffer_8cpp_source.html#l00052">filebuffer.cpp:52</a></div></div>
<div class="ttc" id="classShipCAD_1_1FileBuffer_html_adcc7e54a07f39ad930df82da9c3c70fd"><div class="ttname"><a href="classShipCAD_1_1FileBuffer.html#adcc7e54a07f39ad930df82da9c3c70fd">ShipCAD::FileBuffer::saveToFile</a></div><div class="ttdeci">void saveToFile(QFile &amp;file)</div><div class="ttdef"><b>Definition:</b> <a href="filebuffer_8cpp_source.html#l00085">filebuffer.cpp:85</a></div></div>
<div class="ttc" id="classShipCAD_1_1Plane_html"><div class="ttname"><a href="classShipCAD_1_1Plane.html">ShipCAD::Plane</a></div><div class="ttdef"><b>Definition:</b> <a href="plane_8h_source.html#l00039">plane.h:39</a></div></div>
<div class="ttc" id="namespaceShipCAD_html"><div class="ttname"><a href="namespaceShipCAD.html">ShipCAD</a></div><div class="ttdef"><b>Definition:</b> <a href="backgroundimage_8h_source.html#l00039">backgroundimage.h:39</a></div></div>
<div class="ttc" id="classShipCAD_1_1FileBuffer_html_a51dc1007457d999ce374afd6a6ae29f8"><div class="ttname"><a href="classShipCAD_1_1FileBuffer.html#a51dc1007457d999ce374afd6a6ae29f8">ShipCAD::FileBuffer::size</a></div><div class="ttdeci">size_t size()</div><div class="ttdef"><b>Definition:</b> <a href="filebuffer_8h_source.html#l00060">filebuffer.h:60</a></div></div>
<div class="ttc" id="structShipCAD_1_1KAPERResistance_html"><div class="ttname"><a href="structShipCAD_1_1KAPERResistance.html">ShipCAD::KAPERResistance</a></div><div class="ttdef"><b>Definition:</b> <a href="resistance_8h_source.html#l00070">resistance.h:70</a></div></div>
<div class="ttc" id="classShipCAD_1_1FileBuffer_html_a397c9a755598f9939eb30460b605d44c"><div class="ttname"><a href="classShipCAD_1_1FileBuffer.html#a397c9a755598f9939eb30460b605d44c">ShipCAD::FileBuffer::~FileBuffer</a></div><div class="ttdeci">~FileBuffer()</div><div class="ttdef"><b>Definition:</b> <a href="filebuffer_8h_source.html#l00058">filebuffer.h:58</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Feb 25 2018 15:35:59 for ShipCAD by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
